// 导入request
import request from "@/utils/request";
//封装用户页码
export const getArticle = (data) => {
  return request.get("/admin/interview/query", { params: data });
};

// 发送新添加的面经ajax

export const getCreate = (data) => {
  return request.post("/admin/interview/create", data);
};

//查询蚊帐

export const getArticleDetail = (id) => {
  return request.get("/admin/interview/show", { params: { id } });
};

// 编辑蚊帐
export const ediArticle = (data) => {
  return request.put("/admin/interview/update", data);
};

// 删除文章
export const deltelArticle = (id) => {
  return request.delete("/admin/interview/remove", {
    data: {
      id,
    },
  });
};
